//
//  HeroInformation.m
//  LOLProject
//
//  Created by lanou3g on 15/6/5.
//  Copyright (c) 2015年 lanou3g.com蓝欧科技. All rights reserved.
//

#import "HeroInformation.h"

@implementation HeroInformation

#pragma mark---对不能识别的key,进行友好提示
- (void) setValue:(id)value forUndefinedKey:(NSString *)key{
    return ;
}

#pragma mark---对一些key进行处理
- (void) setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID=value;
    }
    if ([key isEqualToString:@"description"]) {
        self.descriptionOfHero=value;
    }
    return ;
}

#pragma mark---重写description方法,打印需要的信息
- (NSString *) description{
    return [NSString stringWithFormat:@"descriptionOfHero:%@",self.descriptionOfHero];
}

@end
